﻿#region itdc

/************************************************************************
*Copyright(C) 2015 by qsgy
 *All rights reserved. 
 *FileName:     $safeitemname$
 *Author:       oyh
 *Version:      
 *UnityVersion：
 *Date:   $time$      
 *Description:    
 *History: 
************************************************************************/
#endregion
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 用于系列关联启动enable和active的情况。
/// 为了方便在面板中引用某个物体上的指定脚本
/// </summary>

public abstract class NextRunner:MonoBehaviour, Receiver<bool>
{


    //接受信息控制开关
    public virtual void Reveive(TMessage<bool> t)
    {
        if (t.Message)
        {
            this.enabled = true;
        }
        else
        {
            this.enabled = false;
        }
    }
}
